package com.chat.dao;

import java.util.Map;

import org.springframework.stereotype.Repository;

import com.chat.entity.TdPeople;
/**
 * td_people表操作Dao接口
 * @author zh_zhong
 *
 */
@Repository
public interface IPeopleDao {
    int deleteByPrimaryKey(Integer userid);

    int insert(TdPeople record);

    int insertSelective(TdPeople record);

    TdPeople selectByPrimaryKey(Integer userid);

    int updateByPrimaryKeySelective(TdPeople record);

    int updateByPrimaryKey(TdPeople record);
    
    ////////////////////////手写方法//////////////////
    public Map<String, String> findPeopleById(int id);
    
    /**
     * @author zh_zhong
     * @param userName
     * @return
     */
    public TdPeople findModelByUserName(String userName);
}